package com.woniu.service;

import com.woniu.entity.dto.QueryTrainingDTO;

import com.woniu.entity.PageData;
import com.woniu.entity.dto.SearchTrainingDTO;
import com.woniu.entity.dto.TrainingDTO;
import com.woniu.entity.vo.TrainingVO;
import com.woniu.pojo.Training;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaosong
 * @since 2023-03-31
 */
public interface ITrainingService extends IService<Training> {


    PageData listSearch(Integer currentPage, Integer pageSize, QueryTrainingDTO queryTrainingDTO);

    Boolean nameIsExist(String name);

    Boolean switchVIP(Integer id, Integer isVip);


    List<TrainingVO> showFollow(Integer uid);

    Set<TrainingVO> recommend();

    PageData searchBar(Integer currentPage, Integer pageSize , Integer userId, String title, SearchTrainingDTO searchTrainingDTO);

    ArrayList<String> showParent();

    Boolean checkCollect(Integer uid, String title);

    PageData search(Integer currerPage, Integer pageSize, TrainingDTO trainingDTO);

    Integer getParentId(String pName);
}
